import request from '@/utils/request'

// 查询社联风采列表
export function listPick(query) {
  return request({
    url: '/pick/list',
    method: 'get',
    params: query
  })
}

// 查询社联风采详细
export function getPick(pickId) {
  return request({
    url: '/pick/' + pickId,
    method: 'get'
  })
}

// 新增社联风采
export function addPick(data) {
  return request({
    url: '/pick',
    method: 'post',
    data: data
  })
}

// 修改社联风采
export function updatePick(data) {
  return request({
    url: '/pick',
    method: 'put',
    data: data
  })
}

// 删除社联风采
export function delPick(pickId) {
  return request({
    url: '/pick/' + pickId,
    method: 'delete'
  })
}
